<template>
  <div class="news">
    <div class="title">疫情热点</div>
    <ul>
      <li v-for="item in news" :key="item.id">
        <span>最新</span>
        {{ item.title }}
      </li>
    </ul>
    <hr />
  </div>
</template>
<script>
export default {
  props: {
    news: {
      type: Array,
      default: () => {}
    }
  },
  data () {
    return {}
  },
  created () {},
  components: {},
  computed: {},
  methods: {}
}
</script>
<style lang="less" scoped>
.news {
  padding: 0.2rem;
  hr {
    color: whitesmoke;
  }
  .title {
    height: 0.2rem;
    line-height: 0.2rem;
    font-size: 0.26rem;
    font-weight: bolder;
    border-left: 0.1rem solid rgb(20, 49, 128);
    padding: 0.1rem;
    margin-bottom: 0.2rem;
  }
  li {
    line-height: 0.44rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.03rem;
    font-size: 0.28rem;
    color: #666;
    span {
      background: #ff5555;
      color: #fff;
      font-size: 0.2rem;
      padding: 0.02rem 0.06rem;
      border-radius: 0.06rem;
    }
  }
}
</style>
